package com.pkk.penguin.frame.know.boot.config.common.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.socket.server.standard.ServerEndpointExporter;

/**
 * @description: web长连接的配置
 * @author: peikunkun
 * @create: 2020-05-12 17:41
 **/
@Configuration
public class WebSocketConfig {


  /**
   * @Description: 长连接的配置
   * @return: org.springframework.web.socket.server.standard.ServerEndpointExporter
   * @Author: peikunkun
   * @Date: 2020/5/12 0012 下午 5:44
   */
  @Bean
  public ServerEndpointExporter serverEndpointExporter() {
    return new ServerEndpointExporter();
  }
}
